<?php

// +----------------------------------------------------------------------
// | H1CMS © OpenSource CMS
// +----------------------------------------------------------------------
// | Copyright (c) 2014-2016 http://www.h1cms.com All rights reserved.
// | Copyright (c) 2014-2016 嘉兴领格信息技术有限公司，并保留所有权利。
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Allen <allen@lg4.cn>
// +----------------------------------------------------------------------

return [
    // +----------------------------------------------------------------------
    // | PDO Options
    // +----------------------------------------------------------------------
    'fetch' => PDO::FETCH_OBJ,
    'options' => [
        PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
        PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ,
        PDO::ATTR_EMULATE_PREPARES => FALSE,        
    ],
    // +----------------------------------------------------------------------
    // | 默认数据库连接
    // +----------------------------------------------------------------------
    'default' => 'default',
    'connections' => [
        'default' => [
            'host' => '127.0.0.1',
            'driver' => 'mysql',
            'database' => 'h1',
            'username' => 'root',
            'password' => 'root',
            'charset' => 'utf8',
            'collation' => 'utf8_general_ci',
            'prefix' => 'lg_',
        ]
    ]
];
